import logging
import json

from pylons import request, response, session, tmpl_context as c, url

from pylons.controllers.util import abort, redirect

from fidoweb.lib.base import Session, BaseController, render

log = logging.getLogger(__name__)

class DiscountController(BaseController) :
	def index(self) :
		from fidoweb.controllers.login import LoginController
		from fidoweb.controllers.map import MapController
		lc = LoginController()
		mc = MapController()
		c.loginUser = lc._getLoginUser()
		c.schools = mc._getSchools()
		
		c.title = 'Discount'
		c.header = render('global/globalheader.mako')
		c.content = render('discount/content.mako')
		
		c.loginUser = lc._getLoginUser()
		c.schools = mc._getSchools()
		return render('global/global.mako')
	
	def getStoreListPage(self) :
		return render('/discount/storelist.mako')
	
	def getLeftnavPage(self) :
		return render('/discount/leftnav.mako')
	
	def getStorePage(self) :
		return render('/discount/store.mako')
